﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="/favicon.ico">
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <script src="lib/jquery/1.9.1/jquery.min.js"></script>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="lib/html5.js"></script>
    <script type="text/javascript" src="lib/respond.min.js"></script>
    <script type="text/javascript" src="lib/PIE_IE678.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.7/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="lib/icheck/icheck.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="lib/lightbox2/2.8.1/css/lightbox.css">

    <!-- 权限验证 -->
    <script type="text/javascript" src="static/WebApi.js"></script>
    <title>勘查信息</title>

</head>
<body>
    <nav class="breadcrumb">
        <i class="Hui-iconfont">&#xe67f;</i> 首页
        <span class="c-gray en">&gt;</span> 估价列表
        <span class="c-gray en">&gt;</span> 勘查信息
        <span class="c-gray en">&gt;</span><span id="navReportNumber"></span>
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
    </nav>
    <div class="page-container">
        <input type="hidden" id="hdReportNumber" />
        <form action='"+ApiUrl+" + api/SitePicture/AddSitePicture' method="post" enctype="multipart/form-data" class="form form-horizontal" id="form-article-add">
            <div id="tab-Base" class="HuiTab">
                <div class="tabBar cl">
                    <span id="spanbar1">基本信息</span>
                    <span id="spanbar2">权属信息</span>
                    <span id="spanbar3">勘察信息</span>
                    <span id="spanbar4" onclick="ValuationShow()">估价信息</span>
                </div>
                <!--基本信息-->
                <div class="tabCon">
                    <!--详细信息-->
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">项目号：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_ReportNumber" name="T_ReportNumber" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">借款人姓名：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="JT_Name" name="T_ReportNumber" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">借款人身份证号：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="JT_Idcard" name="T_ReportNumber" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">借款人电话：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="JT_Phone" name="T_ReportNumber" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">看房联系人：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_Linkman" name="T_Linkman" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">看房联系人电话：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_Phone" name="T_Phone" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">贷款年限：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_Loanyear" name="T_Loanyear" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">贷款额度：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_Loanlimit" name="T_Loanlimit" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">实际交易价：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_Actual" name="T_Actual" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">房屋坐落：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_Located" name="T_Located" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">房屋用途：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_PurposeID" name="T_PurposeID" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">建成年代：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_Activate" name="T_Activate" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">报告类型：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_ReportID" name="T_ReportID" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">评估受理：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_Assess" name="T_Assess" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">现场勘查所属部门：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_DepartmentID" name="T_DepartmentID" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">现场勘查人员：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_SiteSurveyid" name="T_SiteSurveyid" disabled>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">登记时间：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_Date" name="T_Date" disabled>
                        </div>
                    </div>

                </div>
                <!--权属信息-->
                <div class="tabCon">
                    <div class="mt-20">

                        <div class="col-xs-12 col-sm-11">
                            <ul id="QuanShuHuifold" class="Huifold">
                                <li class="item">
                                    <h4 onclick="trOwneNumber1()">房屋所有权证<b>+</b></h4>
                                    <div class="info">
                                        <table class="table table-border table-bordered table-bg">
                                            <thead>
                                                <tr>
                                                    <th width="120">名称</th>
                                                    <th>值</th>
                                                </tr>

                                            </thead>
                                            <tbody id="MyQuanShuMx"></tbody>
                                        </table>
                                    </div>
                                </li>
                                <li class="item">
                                    <h4 onclick="trRealNumber1()">不动产权证书<b>+</b></h4>
                                    <div class="info">
                                        <table class="table table-border table-bordered table-bg">
                                            <thead>
                                                <tr>
                                                    <th width="120">名称</th>
                                                    <th>值</th>
                                                </tr>
                                            </thead>
                                            <tbody id="MyQuanShuMx1"></tbody>
                                        </table>
                                    </div>
                                </li>
                                <li class="item">
                                    <h4 onclick="trTaxNumber1()">完税证明<b>+</b></h4>
                                    <div class="info">
                                        <table class="table table-border table-bordered table-bg">
                                            <thead>
                                                <tr>
                                                    <th width="120">名称</th>
                                                    <th>值</th>
                                                </tr>
                                            </thead>
                                            <tbody id="MyQuanShuMx2"></tbody>
                                        </table>
                                    </div>
                                </li>
                                <li class="item">
                                    <h4 onclick="trBusinessNumber1()">存量房屋买卖合<b>+</b></h4>
                                    <div class="info">
                                        <table class="table table-border table-bordered table-bg">
                                            <thead>
                                                <tr>
                                                    <th width="120">名称</th>
                                                    <th>值</th>
                                                </tr>
                                            </thead>
                                            <tbody id="MyQuanShuMx3"></tbody>
                                        </table>
                                    </div>
                                </li>
                                <li class="item">
                                    <h4 onclick="imgs()">复印件上传<b>+</b></h4>
                                    <div class="info">
                                        <table class="table table-border table-bordered table-bg">
                                            <tr>
                                                <td>
                                                    <div class="row cl">
                                                        <label class="form-label col-xs-4 col-sm-2">房屋所有权证照片</label>
                                                        <div id="meter_1" class="formControls col-xs-8 col-sm-9">
                                                            <input type="file" name="file" id="doc" multiple="multiple" style="width:150px; display:none" onchange="javascript:setImagePreviews(this);" accept="image/*" />
                                                            <input class="btn btn-success" name="" style="width:100px" onclick="document.getElementById('doc').click();" type="button" value="点击上传" title="点击替换图片">
                                                            <div id="dd" style=" width:990px;margin-left:-10px"></div>
                                                            <div id="result"></div>
                                                        </div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="row cl">
                                                        <label class="form-label col-xs-4 col-sm-2">不动产权证书照片</label>
                                                        <div id="meter_1" class="formControls col-xs-8 col-sm-9">
                                                            <input type="file" name="file" id="doc1" multiple="multiple" style="width:150px; display:none" onchange="javascript:setImagePreviews1(this);" accept="image/*" />
                                                            <input class="btn btn-success" name="" style="width:100px" onclick="document.getElementById('doc1').click();" type="button" value="点击上传" title="点击替换图片">
                                                            <div id="dd1" style=" width:990px;margin-left:-10px"></div>
                                                        </div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="row cl">
                                                        <label class="form-label col-xs-4 col-sm-2">税收完税证明照片</label>
                                                        <div id="meter_1" class="formControls col-xs-8 col-sm-9">
                                                            <input type="file" name="file" id="doc2" multiple="multiple" style="width:150px;display:none" onchange="javascript: setImagePreviews2(this);" accept="image/*" />
                                                            <input class="btn btn-success" style="width:100px" name="" onclick="document.getElementById('doc2').click();" type="button" value="点击上传" title="点击替换图片">
                                                            <div id="dd2" style=" width:990px;margin-left:-10px"></div>
                                                        </div>
                                                        <div style="margin :0px auto; width:990px;">
                                                        </div>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <!--勘察信息-->
                <div class="tabCon">
                    <div id="myTab" class="HuiTab" style="padding-top:10px;">
                        <div class="tabBar cl">
                            <span>抵押物区位状况</span>
                            <span>小区状况</span>
                            <span>建筑公共部位状况</span>
                            <span>户内部分</span>
                            <span>现场照片要求</span>
                            <span>询价记录</span>
                        </div>
                        <!--抵押物区位状况的信息显示-->
                        <div class="tabCon" id="Zone">
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">小区四至-东至：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" class="input-text" value="" placeholder="请输入小区四至-东至" id="T_Master" name="T_Master" maxlength="50" />
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">小区四至-南至：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" class="input-text" value="" placeholder="请输入小区四至-南至" id="T_South" name="T_South" maxlength="50" />
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">小区四至-西至：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" class="input-text" value="" placeholder="请输入小区四至-西至" id="T_Western" name="T_Western" maxlength="50" />
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">小区四至-北至：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" class="input-text" value="" placeholder="请输入小区四至-北至" id="T_North" name="T_North" maxlength="50" />
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">位置环绕：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_SurroundID" id="T_SurroundID" class="select">
                                            <option value="0">二环内（东南西北）</option>
                                            <option value="1">2-3环</option>
                                            <option value="11">3-4环</option>
                                            <option value="12">4-5环</option>
                                            <option value="13">5-6环</option>
                                            <option value="14">6环外</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">交通情况：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" class="input-text" value="" placeholder="请输入交通情况" id="T_Traffic" name="T_Traffic" maxlength="100" />
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">交通便捷度：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_TrafficID" id="T_TrafficID" class="select">
                                            <option value="0">便捷</option>
                                            <option value="1">比较便捷</option>
                                            <option value="11">一般</option>
                                            <option value="12">不便</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">自然人文环境情况：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" class="input-text" placeholder="请输入自然人文环境情况" id="T_Nature" name="T_Nature" maxlength="100" />
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">自然人文环境质量：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select class="select" id="T_NatureID" name="T_NatureID">
                                            <option value="0">优良</option>
                                            <option value="1">良</option>
                                            <option value="2">一般</option>
                                            <option value="2">较差</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">居住社区成情况：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" class="input-text" value="" placeholder="请输入居住社区成情况" id="T_Dwelling" name="T_Dwelling" maxlength="100" />
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">居住社区成熟度：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_DwellingID" id="T_DwellingID" class="select">
                                            <option value="0">已建成社区，入住情况良好。</option>
                                            <option value="1">社区成熟度一般，入住率</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">基础设施配套情况：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" class="input-text" placeholder="请输入基础设施配套情况" id="T_Infrastructure" name="T_Infrastructure" maxlength="100" />
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">基础设施配套度：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_InfrastructureID" id="T_InfrastructureID" class="select">
                                            <option value="0">七通一平</option>
                                            <option value="1">五通一平</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">配套设施：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_SupportingID" id="T_SupportingID" class="select">
                                            <option value="0">居住社区规模大，内部配套齐全</option>
                                            <option value="1">内部纯居住社区，利用周围配套设施</option>
                                            <option value="2">内部设施缺乏，周边配套设施较少</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">有关说明：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <textarea name="T_Explain" id="T_Explain" cols="" rows="" class="textarea" placeholder="说点什么...最少输入10个字符" datatype="*10-100" dragonfly="true" nullmsg="备注不能为空！" onkeyup="textarealength(this,200)"></textarea>
                                </div>
                            </div>
                            <div class="row cl">
                                <div class="formControls col-xs-12 col-sm-12">
                                    <!--<button class="btn btn-success col-xs-offset-5 col-sm-offset-5 " name="Remove" onclick="insertZone()" type="button">保存</button>-->
                                </div>
                            </div>
                        </div>
                        <!--小区状况-->
                        <div class="tabCon" id="Community">
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">项目案名：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" value="" placeholder="请输入项目案名" id="T_Project" name="T_Project" class="input-text" maxlength="50" />
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">来源：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_SourceID" class="select" id="T_SourceID">
                                            <option value="0">证载</option>
                                            <option value="1">现场调查</option>
                                            <option value="1">物业证明</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">小区封闭性：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_CloseID" id="T_CloseID" class="select">
                                            <option value="0">封闭居住区</option>
                                            <option value="1">开放式社区</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">居住小区楼宇结构：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_BuildingID" id="T_BuildingID" class="select">
                                            <option value="0">高层居住小区</option>
                                            <option value="1">多层住宅小区</option>
                                            <option value="2">高层与多层混合小区</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">交通组织方式：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_TrafficZuzhiID" id="T_TrafficZuzhiID" class="select">
                                            <option value="0">人车分流</option>
                                            <option value="1">人车共存</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">景观及绿化：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_AfforestID" id="T_AfforestID" class="select">
                                            <option value="0">毗邻景区，景观良好</option>
                                            <option value="1">有规划的绿化</option>
                                            <option value="2">零星绿</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">容积率：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_VolumeID" id="T_VolumeID" class="select">
                                            <option value="0">容积率大于1</option>
                                            <option value="1">容积率小于1</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">车位状况：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_StallID" id="T_StallID" class="select">
                                            <option value="0">专用停车位，地下车库</option>
                                            <option value="1">地上车位，车位充足</option>
                                            <option value="2">楼间停车，车位较紧张</option>
                                            <option value="3">停车混乱，缺乏管理</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">物业公司：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_PropertyID" id="T_PropertyID" class="select">
                                            <option value="0">专业物业公司管理</option>
                                            <option value="1">无专业物业公司管理</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">其他：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <textarea name="T_Else" id="T_Else" cols="" rows="" class="textarea" placeholder="说点什么...最少输入10个字符" datatype="*10-100" dragonfly="true" nullmsg="备注不能为空！" onkeyup="textarealength(this,200)"></textarea>
                                </div>
                            </div>
                            <div class="row cl">
                                <div class="formControls col-xs-12 col-sm-12">
                                    <!--<button class="btn btn-success col-xs-offset-5 col-sm-offset-5 " name="Remove" type="button" onclick="insertCommunity()">保存</button>-->
                                </div>
                            </div>
                        </div>
                        <!--建筑公共部位-->
                        <div class="tabCon" id="Facility">
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">所在楼号：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" id="T_Buildingafew" name="T_Buildingafew" class="input-text" placeholder="请输入所在楼" maxlength="5" />
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">定位坐标：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" id="T_Location" name="T_Location" class="input-text" placeholder="请输入定位坐标" disabled />
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">定位地址：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" id="T_LocationAddress" name="T_LocationAddress" class="input-text" placeholder="请输入定位地址" disabled />
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">房屋结构：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_StructureID" id="T_StructureID" class="select">
                                            <option value="0">钢筋混凝土</option>
                                            <option value="1">砖混结构</option>
                                            <option value="2">混合结构</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">建筑类型：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_TypesID" id="T_TypesID" class="select">
                                            <option value="0">高板</option>
                                            <option value="1">告他</option>
                                            <option value="2">塔板结合</option>
                                            <option value="3">多层</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">外立面装饰：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_FacadeID" id="T_FacadeID" class="select">
                                            <option value="0">清水砖墙</option>
                                            <option value="1">石材</option>
                                            <option value="3">涂料</option>
                                            <option value="4">局部石材，局部涂料</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">公共部位装饰：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_CommonalityID" id="T_CommonalityID" class="select">
                                            <option value="0">普通装修（水泥地面，墙面涂料，普通照明）</option>
                                            <option value="1">豪华装修（墙面地面石材，不锈钢扶手）</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">电梯：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_ElevatorID" id="T_ElevatorID" class="select">
                                            <option value="0">无电梯</option>
                                            <option value="1">有电梯  部</option>
                                            <option value="1">每层   户</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">供气：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_SupplyID" class="select" id="T_SupplyID">
                                            <option value="0">管道燃气入户</option>
                                            <option value="1">无管道燃气</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">供水：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_WaterID" class="select" id="T_WaterID">
                                            <option value="0">市政供水</option>
                                            <option value="1">无市政供水</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">供暖：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_HeatingID" class="select" id="T_HeatingID">
                                            <option value="0">集中供暖</option>
                                            <option value="1">分户采暖</option>
                                            <option value="2">无供暖设计</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">门禁系统：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_EntranceID" class="select" id="T_EntranceID">
                                            <option value="0">有</option>
                                            <option value="1">无</option>>
                                        </select>
                                    </span>
                                </div>
                            </div>

                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">其他：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <textarea name="T_Else3" id="T_Else3" class="textarea" placeholder="说点什么...最少输入10个字符" datatype="*10-100" dragonfly="true" nullmsg="备注不能为空！" onkeyup="textarealength(this,200)"></textarea>
                                </div>
                            </div>
                            <div class="row cl">
                                <div class="formControls col-xs-12 col-sm-12">
                                    <!--<button class="btn btn-success col-xs-offset-5 col-sm-offset-5 " name="Remove" type="button" onclick="insertFacility()">保存</button>-->
                                </div>
                            </div>
                        </div>
                        <!--户内部分-->
                        <div class="tabCon" id="Indoor">
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">房屋实际用途：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_purposeID" class="select" id="T_purposeID" required="required">
                                            <option value="1">居住</option>
                                            <option value="2">租用</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">总楼层：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" id="T_Floor" name="T_Floor" class="input-text" placeholder="请输入总楼层" maxlength="5" required="required" />
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">所在楼层：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" id="T_Storey" name="T_Storey" class="input-text" placeholder="请输入所在楼层" maxlength="5" required="required" />
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">朝向：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_OrientationID" class="select" id="T_OrientationID" required="required">
                                            <option value="0">东</option>
                                            <option value="1">南</option>
                                            <option value="2">西</option>
                                            <option value="3">北</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">住宅类型：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_ResidenceID" class="select" id="T_ResidenceID" required="required">
                                            <option value="0">平层</option>
                                            <option value="1">复试</option>
                                            <option value="2">跃层</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">户型：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" id="T_SeveralBedroom" class="input-text" style="display:inline;width:10%;" maxlength="1" />卧室
                                    <input type="text" id="T_Severaldrawing" class="input-text" style="display:inline;width:10%" maxlength="1" />客厅
                                    <input type="text" id="T_Severalbathroom" class="input-text" style="display:inline;width:10%" maxlength="1" />卫生间
                                    <input type="text" id="T_SeveralKITCHEN" class="input-text" style="display:inline;width:10%" maxlength="1" />厨房
                                    <input type="text" id="T_Severalbalcony" class="input-text" style="display:inline;width:10%" maxlength="1" />阳台
                                    <input type="text" id="T_SeveralTerrace" class="input-text" style="display:inline;width:10%" maxlength="1" />露台
                                    <input type="text" id="T_SeveralSmall" class="input-text" style="display:inline;width:10%" maxlength="1" />小院
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">客厅装修程度：</label>
                                <div class="formControls col-xs-4 col-sm-4">
                                    <span class="select-box">
                                        <select name="T_DrawingID" class="select" id="T_DrawingID">
                                            <option value="1">有</option>
                                            <option value="2">无</option>
                                        </select>
                                    </span>
                                </div>
                                <div class="formControls col-xs-4 col-sm-5">
                                    <span class="select-box">
                                        <select name="T_RoomdescribeID" class="select" id="T_RoomdescribeID">
                                            <option value="1">毛坯</option>
                                            <option value="2">普通装修</option>
                                            <option value="3">精装修</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">客厅装修情况：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <div class="row cl">
                                        <label class="form-label col-xs-4 col-sm-2">内墙：</label>
                                        <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                                            <span class="check-box">
                                                <input name="T_RoomdescribeInteriorwall" type="checkbox" value="涂料" /><label for="T_RoomdescribeInteriorwall1">涂料</label>
                                            </span>
                                            <span class="check-box">
                                                <input name="T_RoomdescribeInteriorwall" type="checkbox" value="壁纸" /><label for="T_RoomdescribeInteriorwall2">壁纸</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_RoomdescribeInteriorwall3" name="T_RoomdescribeInteriorwall" type="checkbox" value="石材" /><label for="T_RoomdescribeInteriorwall3">石材</label>
                                            </span>
                                            <span>
                                                <span>其它:</span> <input type="text" id="T_RoomdescribeInteriorwallOther" style="width:150px" name="T_RoomdescribeInteriorwallOther" class="input-text" />
                                            </span>
                                        </div>
                                        <!--<div class="formControls col-xs-4 col-sm-4">
                                        </div>-->
                                    </div>
                                    <div class="row cl">
                                        <label class="form-label col-xs-4 col-sm-2">顶棚：</label>
                                        <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                                            <span class="check-box">
                                                <input id="T_RoomdescribeCeiling1" name="T_RoomdescribeCeiling" type="checkbox" value="涂料 " /><label for="T_RoomdescribeCeiling1">涂料</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_RoomdescribeCeiling2" name="T_RoomdescribeCeiling" type="checkbox" value="吊顶" /><label for="T_RoomdescribeCeiling2">吊顶</label>
                                            </span>
                                            <span>
                                                <span>其它:</span> <input type="text" id="T_RoomdescribeCeilingOther" style="width:150px" name="T_RoomdescribeCeilingOther" class="input-text" />
                                            </span>
                                        </div>
                                    </div>
                                    <div class="row cl">
                                        <label class="form-label col-xs-4 col-sm-2">地面：</label>
                                        <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                                            <span class="check-box">
                                                <input id="T_RoomdescribeGround1" name="T_RoomdescribeGround" type="checkbox" value="地砖" /><label for="T_RoomdescribeGround1">地砖</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_RoomdescribeGround2" name="T_RoomdescribeGround" type="checkbox" value="混凝土" /><label for="T_RoomdescribeGround2">混凝土</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_RoomdescribeGround3" name="T_RoomdescribeGround" type="checkbox" value="木地板" /><label for="T_RoomdescribeGround3">木地板</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_RoomdescribeGround4" name="T_RoomdescribeGround" type="checkbox" value="木地板" /><label for="T_RoomdescribeGround4">地板革</label>
                                            </span>
                                            <span>
                                                <span>其它:</span> <input type="text" id="T_RoomdescribeGroundOther" style="width:150px" name="T_RoomdescribeGroundOther" class="input-text" />
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">居室装修程度：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_HabitableID" class="select" id="T_HabitableID">
                                            <option value="1">毛坯</option>
                                            <option value="2">普通装修</option>
                                            <option value="3">精装修</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">居室装修情况：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <div class="row cl">
                                        <label class="form-label col-xs-4 col-sm-2">内墙：</label>
                                        <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                                            <span class="check-box">
                                                <input id="T_HabitableInteriorwall1" name="T_HabitableInteriorwall" type="checkbox" value="涂料" /><label for="T_HabitableInteriorwall1">涂料</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_HabitableInteriorwall2" name="T_HabitableInteriorwall" type="checkbox" value="壁纸" /><label for="T_HabitableInteriorwall2">壁纸</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_HabitableInteriorwall3" name="T_HabitableInteriorwall" type="checkbox" value="石材" /><label for="T_HabitableInteriorwall3">石材</label>
                                            </span>
                                            <span>
                                                <span>其它:</span> <input type="text" id="T_HabitableInteriorwallOther" style="width:150px" name="T_HabitableInteriorwallOther" class="input-text" />
                                            </span>
                                        </div>
                                    </div>
                                    <div class="row cl">
                                        <label class="form-label col-xs-4 col-sm-2">顶棚：</label>
                                        <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                                            <span class="check-box">
                                                <input id="T_HabitableCeiling1" name="T_HabitableCeiling" type="checkbox" value="涂料 " /><label for="T_HabitableCeiling1">涂料</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_HabitableCeiling2" name="T_HabitableCeiling" type="checkbox" value="吊顶" /><label for="T_HabitableCeiling2">吊顶</label>
                                            </span>
                                            <span>
                                                <span>其它:</span> <input type="text" id="T_HabitableCeilingOther" style="width:150px" name="T_HabitableCeilingOther" class="input-text" />
                                            </span>
                                        </div>
                                    </div>
                                    <div class="row cl">
                                        <label class="form-label col-xs-4 col-sm-2">地面：</label>
                                        <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                                            <span class="check-box">
                                                <input id="T_HabitableGround1" name="T_HabitableGround" type="checkbox" value="地砖" /><label for="T_HabitableGround1">地砖</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_HabitableGround2" name="T_HabitableGround" type="checkbox" value="混凝土" /><label for="T_HabitableGround2">混凝土</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_HabitableGround3" name="T_HabitableGround" type="checkbox" value="木地板" /><label for="T_HabitableGround3">木地板</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_HabitableGround4" name="T_HabitableGround" type="checkbox" value="木地板" /><label for="T_HabitableGround4">地板革</label>
                                            </span>
                                            <span>
                                                <span>其它:</span> <input type="text" id="T_HabitableGroundOther" style="width:150px" name="T_HabitableGroundOther" class="input-text" />
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">卫生间装修程度：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_ToiletID" class="select" id="T_ToiletID">
                                            <option value="1">毛坯</option>
                                            <option value="2">普通装修</option>
                                            <option value="3">精装修</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">卫生间装修情况：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <div class="row cl">
                                        <label class="form-label col-xs-4 col-sm-2">内墙：</label>
                                        <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                                            <span class="check-box">
                                                <input id="T_ToiletInteriorwall1" name="T_ToiletInteriorwall" type="checkbox" value="涂料" /><label for="T_ToiletInteriorwall1">涂料</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_ToiletInteriorwall2" name="T_ToiletInteriorwall" type="checkbox" value="壁纸" /><label for="T_ToiletInteriorwall2">壁纸</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_ToiletInteriorwall3" name="T_ToiletInteriorwall" type="checkbox" value="石材" /><label for="T_ToiletInteriorwall3">石材</label>
                                            </span>
                                            <span>
                                                <span>其它:</span> <input type="text" id="T_ToiletInteriorwallOther" style="width:150px" name="T_ToiletInteriorwallOther" class="input-text" />
                                            </span>
                                        </div>
                                    </div>
                                    <div class="row cl">
                                        <label class="form-label col-xs-4 col-sm-2">顶棚：</label>
                                        <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                                            <span class="check-box">
                                                <input id="T_ToiletCeiling1" name="T_ToiletCeiling" type="checkbox" value="涂料 " /><label for="T_ToiletCeiling1">涂料</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_ToiletCeiling2" name="T_ToiletCeiling" type="checkbox" value="吊顶" /><label for="T_ToiletCeiling2">吊顶</label>
                                            </span>
                                            <span>
                                                <span>其它:</span> <input type="text" id="T_ToiletCeilingOther" style="width:150px" name="T_ToiletCeilingOther" class="input-text" />
                                            </span>
                                        </div>
                                    </div>
                                    <div class="row cl">
                                        <label class="form-label col-xs-4 col-sm-2">地面：</label>
                                        <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                                            <span class="check-box">
                                                <input id="T_ToiletGround1" name="T_ToiletGround" type="checkbox" value="地砖" /><label for="T_ToiletGround1">地砖</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_ToiletGround2" name="T_ToiletGround" type="checkbox" value="混凝土" /><label for="T_ToiletGround2">混凝土</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_ToiletGround3" name="T_ToiletGround" type="checkbox" value="木地板" /><label for="T_ToiletGround3">木地板</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_ToiletGround4" name="T_ToiletGround" type="checkbox" value="木地板" /><label for="T_HabitableGround4">地板革</label>
                                            </span>
                                            <span>
                                                <span>其它:</span> <input type="text" id="T_ToiletGroundOther" style="width:150px" name="T_ToiletGroundOther" class="input-text" />
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">厨房装修程度：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <span class="select-box">
                                        <select name="T_KitchenID" class="select" id="T_KitchenID">
                                            <option value="1">毛坯</option>
                                            <option value="2">普通装修</option>
                                            <option value="3">精装修</option>
                                        </select>
                                    </span>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">厨房装修情况：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <div class="row cl">
                                        <label class="form-label col-xs-4 col-sm-2">内墙：</label>
                                        <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                                            <span class="check-box">
                                                <input id="T_KitchenInteriorwall1" name="T_KitchenInteriorwall" type="checkbox" value="涂料" /><label for="T_KitchenInteriorwall1">涂料</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_KitchenInteriorwall2" name="T_KitchenInteriorwall" type="checkbox" value="壁纸" /><label for="T_KitchenInteriorwall2">壁纸</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_KitchenInteriorwall3" name="T_KitchenInteriorwall" type="checkbox" value="石材" /><label for="T_KitchenInteriorwall3">石材</label>
                                            </span>
                                            <span>
                                                <span>其它:</span> <input type="text" id="T_KitchenInteriorwallOther" style="width:150px" name="T_KitchenInteriorwallOther" class="input-text" />
                                            </span>
                                        </div>
                                    </div>
                                    <div class="row cl">
                                        <label class="form-label col-xs-4 col-sm-2">顶棚：</label>
                                        <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                                            <span class="check-box">
                                                <input id="T_KitchenCeiling1" name="T_KitchenCeiling" type="checkbox" value="涂料 " /><label for="T_KitchenCeiling1">涂料</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_KitchenCeiling2" name="T_KitchenCeiling" type="checkbox" value="吊顶" /><label for="T_KitchenCeiling2">吊顶</label>
                                            </span>
                                            <span>
                                                <span>其它:</span> <input type="text" id="T_KitchenCeilingOther" style="width:150px" name="T_KitchenCeilingOther" class="input-text" />
                                            </span>
                                        </div>
                                    </div>
                                    <div class="row cl">
                                        <label class="form-label col-xs-4 col-sm-2">地面：</label>
                                        <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                                            <span class="check-box">
                                                <input id="T_KitchenGround1" name="T_KitchenGround" type="checkbox" value="地砖" /><label for="T_KitchenGround1">地砖</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_KitchenGround2" name="T_KitchenGround" type="checkbox" value="混凝土" /><label for="T_KitchenGround2">混凝土</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_KitchenGround3" name="T_KitchenGround" type="checkbox" value="木地板" /><label for="T_KitchenGround3">木地板</label>
                                            </span>
                                            <span class="check-box">
                                                <input id="T_KitchenGround4" name="T_KitchenGround" type="checkbox" value="木地板" /><label for="T_KitchenGround4">地板革</label>
                                            </span>
                                            <span>
                                                <span>其它:</span> <input type="text" id="T_KitchenGroundOther" style="width:150px" name="T_KitchenGroundOther" class="input-text" />
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row cl">
                                <label class="form-label col-xs-4 col-sm-2">有关说明：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <textarea name="T_Explain4" id="T_Explain4" class="textarea" placeholder="说点什么...最少输入10个字符" datatype="*10-100" dragonfly="true" nullmsg="备注不能为空！" onkeyup="textarealength(this,200)"></textarea>
                                </div>
                            </div>
                            <div class="row cl">
                                <div class="formControls col-xs-12 col-sm-12">
                                </div>
                            </div>
                        </div>
                        <!--图片上传-->
                        <div class="tabCon" id="SitePicture">
                            <div class="mt-20">
                                <div class="Huialert Huialert-info"><i class="icon-remove"></i>有红色*提示的图片是必须上传12张图片</div>
                            </div>
                            <ul class="cl portfolio-area">
                                <!--小区外部环境-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images1" onchange="addImages(this, 'Images1')" style="display:none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages1"></div>
                                        <div class="textbox"><span>小区外部环境</span> <span style="color:red;display:inline-block">*</span> </div>

                                    </div>
                                </li>
                                <!--小区门前道路-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images2" onchange="addImages(this, 'Images2')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages2"></div>
                                        <div class="textbox"><span>小区门前道路</span>  </div>
                                    </div>
                                </li>
                                <!--小区入口-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images3" onchange="addImages(this, 'Images3')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages3"></div>
                                        <div class="textbox"><span>小区入口</span> <span style="color:red">*</span> </div>
                                    </div>
                                </li>
                                <!--小区绿化-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images4" onchange="addImages(this, 'Images4')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages4"></div>
                                        <div class="textbox"><span>小区绿化</span>  </div>
                                    </div>
                                </li>
                                <!--小区内部环境-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images5" onchange="addImages(this, 'Images5')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages5"></div>
                                        <div class="textbox"><span>小区内部环境</span><span style="color:red">*</span> </div>
                                    </div>
                                </li>
                                <!--物业地址（建筑楼牌）-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images6" onchange="addImages(this, 'Images6')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages6"></div>
                                        <div class="textbox"><span> 物业地址（建筑楼牌）</span><span style="color:red">*</span> </div>
                                    </div>
                                </li>
                                <!--建筑外观-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images7" onchange="addImages(this, 'Images7')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages7"></div>
                                        <div class="textbox"> <span> 建筑外观</span></div>
                                    </div>
                                </li>
                                <!--单元门-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images8" onchange="addImages(this, 'Images8')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages8"></div>
                                        <div class="textbox"><span> 单元门</span> <span style="color:red">*</span> </div>
                                    </div>
                                </li>
                                <!--楼梯间-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images9" onchange="addImages(this, 'Images9')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages9"></div>
                                        <div class="textbox"><span>楼梯间</span>  </div>
                                    </div>
                                </li>
                                <!--入户门-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images10" onchange="addImages(this, 'Images10')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages10"></div>
                                        <div class="textbox"><span>入户门</span> <span style="color:red">*</span></div>
                                    </div>
                                </li>
                                <!--居室(1)-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images11" onchange="addImages(this, 'Images11')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages11"></div>
                                        <div class="textbox"><span>居室(1)</span> <span style="color:red">*</span> </div>
                                    </div>
                                </li>
                                <!--居室(2)-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images12" onchange="addImages(this, 'Images12')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages12"></div>
                                        <div class="textbox"><span> 居室(2)</span> <span style="color:red">*</span></div>
                                    </div>
                                </li>
                                <!--居室(3)-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images13" onchange="addImages(this, 'Images13')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages13"></div>
                                        <div class="textbox"><span> 居室(3)</span><span style="color:red">*</span> </div>
                                    </div>
                                </li>
                                <!--卧室-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images14" onchange="addImages(this, 'Images14')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages14"></div>
                                        <div class="textbox"><span>卧室</span>  </div>
                                    </div>
                                </li>
                                <!--客厅-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images15" onchange="addImages(this, 'Images15')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages15"></div>
                                        <div class="textbox"><span>客厅</span>  </div>
                                    </div>
                                </li>
                                <!--厨房-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images16" onchange="addImages(this, 'Images16')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages16"></div>
                                        <div class="textbox"><span>厨房</span>  </div>
                                    </div>
                                </li>
                                <!--卫生间-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images17" onchange="addImages(this, 'Images17')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages17"></div>
                                        <div class="textbox"><span>卫生间</span>  </div>
                                    </div>
                                </li>
                                <!--阳台-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images18" onchange="addImages(this, 'Images18')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages18"></div>
                                        <div class="textbox"><span>阳台</span>  </div>
                                    </div>
                                </li>
                                <!--窗外景观-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images19" onchange="addImages(this, 'Images19')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages19"></div>
                                        <div class="textbox"><span>窗外景观</span>  </div>
                                    </div>
                                </li>
                                <!--电梯间-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images21" onchange="addImages(this, 'Images21')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages21"></div>
                                        <div class="textbox"><span>电梯间</span>  </div>
                                    </div>
                                </li>
                                <!--估价人员在现场(1)）-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images20" onchange="addImages(this, 'Images20')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages20"></div>
                                        <div class="textbox"><span> 估价人员在现场(1) </span><span style="color:red">*</span> </div>
                                    </div>
                                </li>
                                <!--估价人员在现场(2)）-->
                                <li class="item">
                                    <div class="portfoliobox">
                                        <input type="file" name="Images" id="Images22" onchange="addImages(this, 'Images22')" style="display: none" />
                                        <input class="btn btn-block" name="" type="button" value="点击上传" title="点击替换图片">
                                        <div id="previewImages22"></div>
                                        <div class="textbox"><span>估价人员在现场(2) </span>  <span style="color:red">*</span></div>
                                    </div>
                                </li>

                            </ul>
                        </div>
                        <!--询价记录-->
                        <div class="tabCon" id="enquiryrecord">
                            <div class="mt-20">
                                <table class="table table-border table-bordered table-bg">
                                    <thead>
                                        <tr class="text-c">
                                            <th width="50">编号</th>
                                            <th width="100">建议评估单价</th>
                                            <th>询价内容及其它</th>
                                            <th width="150">询价时间</th>
                                        </tr>
                                    </thead>
                                    <tbody id="tbodysCollateral_InquiryRecord">
                                        <tr class="text-c">
                                            <td>1</td>
                                            <td>10</td>
                                            <td>询问的小区邻居</td>
                                            <td>2016/01/05/10:20</td>
                                        </tr>
                                        <tr class="text-c">
                                            <td>2</td>
                                            <td>200</td>
                                            <td>询问的中介</td>
                                            <td>2016/01/05/10:20</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <!--估价信息-->
                <div class="tabCon" id="assessInfo">
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">估价目的：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <span class="select-box" id="T_ValuationPurpose_span">
                                <select name="T_ValuationPurpose" class="select" id="T_ValuationPurpose" disabled>
                                    <option value="430001">买卖</option>
                                    <option value="430002">抵押</option>
                                </select>
                            </span>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">估价师：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <span class="form-group">
                                <input type="hidden" class="input-text" id="T_ValuationName" name="T_ValuationName" value="" disabled />
                                <input type="text" class="input-text" id="T_ValuationNameShow" name="T_ValuationNameShow" value="" disabled />
                            </span>
                            <span class="form-group">
                                <!--<span id="replaceValuer" class="l"><a href="javascript:;" class="btn btn-primary radius" title="选择替换估价员"><i class="Hui-iconfont">&#xe665;</i>替换估价员</a></span>-->
                            </span>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">勘查起始日期：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <!--<input type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'datemin\')}',maxDate:'%y-%M-%d'})" id="datemax" class="input-text Wdate" style="width:120px;">-->
                            <input type="text" class="input-text" id="T_StartDate" name="T_StartDate" disabled />
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">勘查结束日期：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <!--<input type="text" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'datemax\')||\'%y-%M-%d\'}'})" id="datemin" class="input-text Wdate" style="width:120px;">-->
                            <input type="text" class="input-text" id="T_EndDate" name="T_EndDate" disabled />
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">估价时点：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <!--<input type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'datemin\')}',maxDate:'%y-%M-%d'})" id="datemax" class="input-text Wdate" style="width:120px;">-->
                            <input type="text" class="input-text" id="T_ValuationDate" name="T_ValuationDate" disabled />
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">评估单价(元/㎡)：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_ValuationPrice" name="T_ValuationPrice" disabled />
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">建筑面积(㎡)：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_Builtuparea" name="T_Builtuparea" disabled />
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">评估总值(万元)：</label>
                        <div class="formControls col-xs-8 col-sm-9">
                            <input type="text" class="input-text" id="T_Valueofassessment" name="T_Valueofassessment" disabled />
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">Excel估价计算单：</label>
                        <div id="meter_1" class="formControls col-xs-8 col-sm-9">
                            <span class="btn-upload form-group">
                                <!--<input class="input-text upload-url" type="text" name="uploadfile" id="uploadfile" readonly nullmsg="请添加附件！" style="width:200px">-->
                                <a href="#" id="uploadFile_1" class="btn btn-primary radius upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
                                <!--<input type="file" multiple name="file-1" id="file-1" class="input-file">-->
                            </span>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">其它附件(多个文件请使用压缩包)：</label>
                        <div id="meter_4" class="formControls col-xs-8 col-sm-9">
                            <span class="btn-upload form-group">
                                <!--<input class="input-text upload-url" type="text" name="uploadfile" id="uploadfile" readonly nullmsg="请添加附件！" style="width:200px">-->
                                <a href="#" id="uploadFile_2" class="btn btn-primary radius upload-btn" ><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
                                <!--<input type="file" multiple name="file-2" id="file-2" class="input-file">-->
                            </span>
                            <!--<a href="#">附件</a>-->
                        </div>
                    </div>
                    <!--<div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">估价机构营业执照复印件</label>
            <div id="meter_1" class="formControls col-xs-8 col-sm-9">
                <input type="file" name="file" id="doc" multiple="multiple" style="width:150px; display:none" onchange="javascript:setImagePreviews(this);" accept="image/*" />
                <input class="btn btn-success" name="" style="width:100px" onclick="document.getElementById('doc').click();" type="button" value="点击上传" title="点击替换图片">
                <div id="dd" style=" width:990px;margin-left:-10px"></div>
                <div id="result"></div>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">估价机构资质证书复印件</label>
            <div id="meter_1" class="formControls col-xs-8 col-sm-9">
                <input type="file" name="file" id="doc1" multiple="multiple" style="width:150px;display:none" onchange="javascript: setImagePreviews1(this);" accept="image/*" />
                <input class="btn btn-success" name="" style="width:100px" onclick="document.getElementById('doc1').click();" type="button" value="点击上传" title="点击替换图片">
                <div id="dd1" style=" width:990px;margin-left:-10px"></div>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">估价人员执业资格证书复印件</label>
            <div id="meter_1" class="formControls col-xs-8 col-sm-9">
                <input type="file" name="file" id="doc2" multiple="multiple" style="width:150px;display:none" onchange="javascript: setImagePreviews2(this);" accept="image/*" />
                <input class="btn btn-success" style="width:100px" name="" onclick="document.getElementById('doc2').click();" type="button" value="点击上传" title="点击替换图片">
                     <div id="dd2" style=" width:990px;margin-left:-10px"></div>
            </div>
            <div style="margin :0px auto; width:990px;">
            </div>
        </div>-->
                    <div id="submit_btn" class="row cl">
                        <div class="formControls col-xs-12 col-sm-12">
                            <div id="buttons">

                            </div>
                            <!--<button class="btn btn-success col-xs-offset-5  col-sm-offset-5 Remove" onclick="insertValuation()" type="button">提交</button>-->
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <!--基本js脚本-->
    <script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="lib/layer/2.1/layer.js"></script>
    <script type="text/javascript" src="lib/icheck/jquery.icheck.min.js"></script>
    <script type="text/javascript" src="lib/jquery.validation/1.14.0/jquery.validate.min.js"></script>
    <script type="text/javascript" src="lib/jquery.validation/1.14.0/validate-methods.js"></script>
    <script type="text/javascript" src="lib/jquery.validation/1.14.0/messages_zh.min.js"></script>
    <!--<script type="text/javascript" src="lib/lightbox2/2.8.1/js/lightbox-plus-jquery.min.js"></script>-->
    <script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="static/h-ui/js/H-ui.js"></script>
    <script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script>
    <!--扩展js脚本-->
    <script type="text/javascript" src="static/Common.js"></script>
    <script type="text/javascript" src="static/PCSelectType.js"></script>
    <!--请在下方写此页面业务相关的脚本-->
</body>
</html>
<script>
    var T_State;
    var P_ReportNumber;
    $(function () {
        var url = window.location.search;
        var request = new Object();
        if (url.indexOf("?") != -1) {  //<!--判断是否存在，如果返回-1，则表明不存在-->
            var str = url.substr(1);   //<!--从第1个字符开始截取-->
            var strs = str.split("&"); //<!--表示以“&’”为分隔符进行分隔，返回的是一个数组-->
            for (var i = 0; i < strs.length; i++) {
                request[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
            }
             P_ReportNumber = request["T_ReportNumber"];
            T_State = request["T_State"];
            if (T_State == 2 || T_State == 4)
            {
                $("#buttons").append('<button class="btn btn-success col-xs-offset-5  col-sm-offset-5 Remove" onclick="insertValuation()" type="button">提交</button>')
            }
         
        }

    })
    function setImagePreviews(avalue) {
        if (T_State < 2 || T_State == 4) {
            var docObj = document.getElementById("doc");
            var dd = document.getElementById("dd");
            dd.innerHTML = "";
            var fileList = docObj.files;
            for (var i = 0; i < fileList.length; i++) {
                dd.innerHTML += "<div id='div" + i + "' style='float:left;margin-left:10px' > <img id='img" + i + "'  /> </div>";
                var imgObjPreview = document.getElementById("img" + i);
                if (docObj.files && docObj.files[i]) {
                    //火狐下，直接设img属性
                    imgObjPreview.style.display = 'block';
                    imgObjPreview.style.width = '150px';
                    imgObjPreview.style.height = '180px';
                    //imgObjPreview.src = docObj.files[0].getAsDataURL();
                    //火狐7以上版本不能用上面的getAsDataURL()方式获取，需要一下方式
                    var reader = new FileReader();
                    reader.readAsDataURL(fileList[i]);
                    reader.onload = function () {
                        $.ajax({
                            type: "post",
                            url: ApiUrl + "api/SitePicture/AddSitePicture",
                            // async: false,
                            data: {
                                T_Pictureurl: this.result,
                                T_ptype: ".jpg",
                                T_ReportNumber: P_ReportNumber,
                                T_Addr: "dd",
                                T_SpName: "房屋所有权证照片"
                                //SP_Picturename: ns.innerText
                            },//所有上传文件统一为此对象。result.value 不再截取。type 为文件类型，带.
                            success: function (data) {
                                if (i == fileList.length) {
                                    switch (data) {
                                        case -2: layer.msg('修改失败!', { icon: 2, time: 2000 }); break;
                                        case -1: layer.msg('上传图片失败!', { icon: 2, time: 2000 }); break;
                                        case 0: layer.msg('服务器连接失败!', { icon: 2, time: 2000 }); break;
                                        case 1: layer.msg('上传成功!', { icon: 1, time: 2000 }); break;
                                        case 2: layer.msg('修改成功!', { icon: 1, time: 2000 }); break;
                                        case 3: layer.msg('该状态不允许操作!', { icon: 1, time: 2000 }); break;
                                    }
                                }
                                else {
                                    switch (data) {
                                        case -1: layer.msg('上传图片失败!', { icon: 2, time: 2000 }); break;
                                    }
                                }


                            }
                        });
                    }
                    imgObjPreview.src = window.URL.createObjectURL(docObj.files[i]);
                    //  result.value = this.result;
                }
                else {
                    //IE下，使用滤镜
                    docObj.select();
                    var imgSrc = document.selection.createRange().text;
                    alert(imgSrc)
                    var localImagId = document.getElementById("img" + i);
                    //必须设置初始大小
                    localImagId.style.width = "150px";
                    localImagId.style.height = "180px";
                    //图片异常的捕捉，防止用户修改后缀来伪造图片
                    try {
                        localImagId.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)";
                        localImagId.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgSrc;
                    }
                    catch (e) {

                        alert("您上传的图片格式不正确，请重新选择!");

                        return false;
                    }
                    imgObjPreview.style.display = 'none';
                    document.selection.empty();
                }
            }
            return true;
        }
    
    }
    function setImagePreviews1(avalue) {
        if (T_State < 2 || T_State == 4) {
            var docObj = document.getElementById("doc1");
            var dd = document.getElementById("dd1");
            dd1.innerHTML = "";
            var fileList = docObj.files;
            for (var i = 0; i < fileList.length; i++) {
                dd1.innerHTML += "<div style='float:left;margin-left:10px' > <img id='img1" + i + "'  /> </div>";
                var imgObjPreview = document.getElementById("img1" + i);
                if (docObj.files && docObj.files[i]) {
                    //火狐下，直接设img属性
                    imgObjPreview.style.display = 'block';
                    imgObjPreview.style.width = '150px';
                    imgObjPreview.style.height = '180px';
                    //imgObjPreview.src = docObj.files[0].getAsDataURL();
                    //火狐7以上版本不能用上面的getAsDataURL()方式获取，需要一下方式


                    var reader = new FileReader();
                    reader.readAsDataURL(fileList[i]);
                    reader.onload = function () {
                        $.ajax({
                            type: "post",
                            url: ApiUrl + "api/SitePicture/AddSitePicture",
                            // async: false,
                            data: {
                                T_Pictureurl: this.result,
                                T_ptype: ".jpg",
                                T_ReportNumber: P_ReportNumber,
                                T_Addr: "dd1",
                                T_SpName: "不动产权证书照片"
                                //SP_Picturename: ns.innerText
                            },//所有上传文件统一为此对象。result.value 不再截取。type 为文件类型，带.
                            success: function (data) {
                                switch (data) {
                                    case -2: layer.msg('修改失败!', { icon: 2, time: 2000 }); break;
                                    case -1: layer.msg('上传图片失败!', { icon: 2, time: 2000 }); break;
                                    case 0: layer.msg('服务器连接失败!', { icon: 2, time: 2000 }); break;
                                    case 1: layer.msg('上传成功!', { icon: 1, time: 2000 }); break;
                                    case 2: layer.msg('修改成功!', { icon: 1, time: 2000 }); break;
                                    case 3: layer.msg('该状态不允许操作!', { icon: 1, time: 2000 }); break;
                                }

                            }
                        });
                    }



                    imgObjPreview.src = window.URL.createObjectURL(docObj.files[i]);
                }
                else {
                    //IE下，使用滤镜
                    docObj.select();
                    var imgSrc = document.selection.createRange().text;
                    alert(imgSrc)
                    var localImagId = document.getElementById("img" + i);
                    //必须设置初始大小
                    localImagId.style.width = "150px";
                    localImagId.style.height = "180px";
                    //图片异常的捕捉，防止用户修改后缀来伪造图片
                    try {
                        localImagId.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)";
                        localImagId.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgSrc;
                    }
                    catch (e) {

                        alert("您上传的图片格式不正确，请重新选择!");

                        return false;
                    }
                    imgObjPreview.style.display = 'none';
                    document.selection.empty();
                }
            }
            return true;
        }
    }
    function setImagePreviews2(avalue) {
        if (T_State < 2 || T_State == 4) {
            var docObj = document.getElementById("doc2");
            var dd = document.getElementById("dd2");
            dd2.innerHTML = "";
            var fileList = docObj.files;
            for (var i = 0; i < fileList.length; i++) {
                dd2.innerHTML += "<div style='float:left;margin-left:10px' > <img id='img2" + i + "'  /> </div>";
                var imgObjPreview = document.getElementById("img2" + i);
                if (docObj.files && docObj.files[i]) {
                    //火狐下，直接设img属性
                    imgObjPreview.style.display = 'block';
                    imgObjPreview.style.width = '150px';
                    imgObjPreview.style.height = '180px';
                    //imgObjPreview.src = docObj.files[0].getAsDataURL();
                    //火狐7以上版本不能用上面的getAsDataURL()方式获取，需要一下方式
                    var reader = new FileReader();
                    reader.readAsDataURL(fileList[i]);
                    reader.onload = function () {
                        $.ajax({
                            type: "post",
                            url: ApiUrl + "api/SitePicture/AddSitePicture",
                            // async: false,
                            data: {
                                T_Pictureurl: this.result,
                                T_ptype: ".jpg",
                                T_ReportNumber: P_ReportNumber,
                                T_Addr: "dd2",
                                T_SpName: "税收完税证明照片"
                                //SP_Picturename: ns.innerText
                            },//所有上传文件统一为此对象。result.value 不再截取。type 为文件类型，带.
                            success: function (data) {
                                switch (data) {
                                    case -2: layer.msg('修改失败!', { icon: 2, time: 2000 }); break;
                                    case -1: layer.msg('上传图片失败!', { icon: 2, time: 2000 }); break;
                                    case 0: layer.msg('服务器连接失败!', { icon: 2, time: 2000 }); break;
                                    case 1: layer.msg('上传成功!', { icon: 1, time: 2000 }); break;
                                    case 2: layer.msg('修改成功!', { icon: 1, time: 2000 }); break;
                                    case 3: layer.msg('该状态不允许操作!', { icon: 1, time: 2000 }); break;
                                }
                            }
                        });
                    }
                    imgObjPreview.src = window.URL.createObjectURL(docObj.files[i]);
                }
                else {
                    //IE下，使用滤镜
                    docObj.select();
                    var imgSrc = document.selection.createRange().text;
                    alert(imgSrc)
                    var localImagId = document.getElementById("img" + i);
                    //必须设置初始大小
                    localImagId.style.width = "150px";
                    localImagId.style.height = "180px";
                    //图片异常的捕捉，防止用户修改后缀来伪造图片
                    try {
                        localImagId.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)";
                        localImagId.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgSrc;
                    }
                    catch (e) {

                        alert("您上传的图片格式不正确，请重新选择!");

                        return false;
                    }
                    imgObjPreview.style.display = 'none';
                    document.selection.empty();
                }
            }
            return true;
        }
    }
    //下面用于多图片上传预览功能
    window.onload = function () {
        var result = document.getElementById("result");
    }

    function trOwneNumber1()
    {
        if(T_State==0)
        {
            trOwneNumber(2);
        }
        else
        {
            trOwneNumber();
        }
    }
    function trRealNumber1()
    {
        if(T_State==0)
        {
            trRealNumber(2);
        }
        else
        {
            trRealNumber();
        }
    }
    function trTaxNumber1()
    {
        if(T_State==0)
        {
            trTaxNumber(2);
        }
        else
        {
            trTaxNumber();
        }
    }
    function trBusinessNumber1()
    {
        if(T_State==0)
        {
            trBusinessNumber(2);
        }
        else
        {
            trBusinessNumber();
        }
    }      
</script>